/**
 * Message logger utility
 * @Author: jiangcheng198745@hotmail.com
 * @Date: 2016/07/09
 */
'use strict';

import {argv as args} from 'yargs';
import {log, colors} from 'gulp-util';

function messageLogger(message, files) {
    if (args.verbose && files) {
        log(message + ': ' + colors.green(files));
    } else {
        log(colors.green(message));
    }
}

module.exports = messageLogger;
